//
//  VCImageProcessing.h
//  VCardPro
//
//  Created by Nguyen Thong Thai on 9/18/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface VCImageProcessing : NSObject
{
    UIImage *originImg;
}

#pragma mark - Properties
@property (strong, nonatomic) UIImage *originalImg;

#pragma mark - Class Methods
+ (UIImage *)normalizeImage:(UIImage *)anImage;
+ (UIImage *)convertRGBAToGrayScaleImage:(UIImage *)anImage;
+ (UIImage *)binarizeImageUsingOtsuMethod:(UIImage *)anImg;
+ (unsigned char *) convertUIImageToBitmapRGBA:(UIImage *)image;
+ (CGContextRef)newBitmapRGBAContextFromImage:(CGImageRef)image;
+ (UIImage *)convertBitmapRGBAToUIImage:(unsigned char *) buffer
                              withWidth:(int)width
                             withHeight:(int)height;
+ (UIImage *)autoCroppedImage:(UIImage *)image;
+ (int)rbgValueAtPixel:(CGPoint)point image:(UIImage *)image;

@end
